package com.neusoft.neuiotms.dcom.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcom.dto.FunctionalGroupDTO;
import com.neusoft.neuiotms.dcom.dto.FunctionalUserDTO;

public interface FunctionalGroupService {

    List<FunctionalGroupDTO> index(Searchable searchable);

    Page<FunctionalGroupDTO> search(Pageable pageable, Searchable searchable);

    FunctionalGroupDTO create(FunctionalGroupDTO dto);

    FunctionalGroupDTO update(Long id, FunctionalGroupDTO dto);

    FunctionalGroupDTO details(Long id);

    void delete(Long id);

    Page<FunctionalUserDTO> userSearch(Pageable pageable, Searchable searchable);
}
